<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Authenticatable;
class Manager extends Model implements \Illuminate\Contracts\Auth\Authenticatable
{
    //定义模型关联的数据表
    protected $table = 'manager';
    use Authenticatable;
    //定义与角色模型关联的数据(一对一)
    public function role()
    {
        return $this->hasOne(Role::class,'id','role_id');
    }
}
